* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #87CEEB, #98FB98);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ui-panel {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.block-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.block-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background: #ecf0f1;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.block-btn:hover {
    background: #bdc3c7;
    transform: translateY(-2px);
}

.block-btn.active {
    background: #3498db;
    color: white;
}

.info {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 14px;
    color: #7f8c8d;
}

#gameCanvas {
    border: 2px solid #34495e;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: crosshair;
}

@media (max-width: 900px) {
    .game-container {
        padding: 10px;
    }
    
    #gameCanvas {
        width: 100%;
        max-width: 600px;
        height: auto;
    }
}
